package com.liuxing.doctor.service.impl;

import com.liuxing.doctor.entity.Doctor;
import com.liuxing.doctor.mapper.DoctorMapper;
import com.liuxing.doctor.service.DoctorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @athuer 行柳
 */
@Service
public class DoctorServiceImpl implements DoctorService {
    @Resource
    private DoctorMapper doctorMapper;
    @Override
    public Doctor queryByIdAndPwd(Map<String,Object> map) {
        return doctorMapper.selectByIdAndPwd(map);
    }

    @Override
    public int updateDoctorLoginPasswd(Map<String, Object> map) {
        return doctorMapper.updateDoctorLoginPasswd(map);
    }

    @Override
    public List<Doctor> selectAll () {
        return doctorMapper.selectAll();
    }

    @Override
    public int insert (Doctor record) {
        return doctorMapper.insert(record);
    }
}
